package com.diver.flinkdemo.entity.xxt.PhoneCard;

import java.io.Serializable;

/**
 * @author
 */
public class BluetoothConnectLog implements Serializable {
    private Integer id;

    /**
     * 手机卡iccid
     */
    private String iccid;

    /**
     * 蓝牙连接状态（0：连接失败，1：连接成功）
     */
    private String connectStatus;

    /**
     * 错误信息
     */
    private String errMessage;

    /**
     * 蓝牙连接时间
     */
    private String connectTime;

    /**
     * 添加时间
     */
    private String addTime;

    /**
     * 修改时间
     */
    private String updataTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIccid() {
        return iccid;
    }

    public void setIccid(String iccid) {
        this.iccid = iccid;
    }

    public String getConnectStatus() {
        return connectStatus;
    }

    public void setConnectStatus(String connectStatus) {
        this.connectStatus = connectStatus;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }

    public String getConnectTime() {
        return connectTime;
    }

    public void setConnectTime(String connectTime) {
        this.connectTime = connectTime;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getUpdataTime() {
        return updataTime;
    }

    public void setUpdataTime(String updataTime) {
        this.updataTime = updataTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BluetoothConnectLog other = (BluetoothConnectLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIccid() == null ? other.getIccid() == null : this.getIccid().equals(other.getIccid()))
            && (this.getConnectStatus() == null ? other.getConnectStatus() == null : this.getConnectStatus().equals(other.getConnectStatus()))
            && (this.getErrMessage() == null ? other.getErrMessage() == null : this.getErrMessage().equals(other.getErrMessage()))
            && (this.getConnectTime() == null ? other.getConnectTime() == null : this.getConnectTime().equals(other.getConnectTime()))
            && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
            && (this.getUpdataTime() == null ? other.getUpdataTime() == null : this.getUpdataTime().equals(other.getUpdataTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIccid() == null) ? 0 : getIccid().hashCode());
        result = prime * result + ((getConnectStatus() == null) ? 0 : getConnectStatus().hashCode());
        result = prime * result + ((getErrMessage() == null) ? 0 : getErrMessage().hashCode());
        result = prime * result + ((getConnectTime() == null) ? 0 : getConnectTime().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getUpdataTime() == null) ? 0 : getUpdataTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", iccid=").append(iccid);
        sb.append(", connectStatus=").append(connectStatus);
        sb.append(", errMessage=").append(errMessage);
        sb.append(", connectTime=").append(connectTime);
        sb.append(", addTime=").append(addTime);
        sb.append(", updataTime=").append(updataTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
